﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcademyRPG
{
    public class Rock : StaticObject, IResource
    {
        private int quantity;
        public const ResourceType resourceType = ResourceType.Stone;

        public Rock(Point position, int hitPoints)
            : base(position, 0)
        {
            this.HitPoints = hitPoints;
            this.quantity = hitPoints / 2;
        }

        public int Quantity
        {
            get { return this.quantity; }
        }

        public ResourceType Type
        {
            get { return Rock.resourceType; }
        }
    }
}
